package pers.mine.po;

import java.util.Date;

import pers.mine.vo.Cart;

public class Order {
	private Integer id;

	private Integer mid;

	private String tel;

	private String address;

	private Date buyTime;

	private String desc;

	private Integer sum;

	private Double cost;

	private Integer state;
	// 补充的字段,用于保存生成该订单的原始购物车raw
	private Cart rawCart;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(Date buyTime) {
		this.buyTime = buyTime;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Integer getSum() {
		return sum;
	}

	public void setSum(Integer sum) {
		this.sum = sum;
	}

	public Double getCost() {
		return cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", mid=" + mid + ", tel=" + tel
				+ ", address=" + address + ", buyTime=" + buyTime + ", desc="
				+ desc + ", sum=" + sum + ", cost=" + cost + ", state=" + state
				+ "]";
	}

	public Cart getRawCart() {
		return rawCart;
	}

	public void setRawCart(Cart rawCart) {
		this.rawCart = rawCart;
	}

}